//
//  FlowList.swift
//  Employee
//
//  Created by swordjoy on 2017/6/28.
//  Copyright © 2017年 remotevillage. All rights reserved.
//

import Foundation
import SwiftyJSON


struct FlowList: ModelProtocol {
  let approvalName: String
  let approverStatus: String
  let createTime: String
  let flowType: String
  let title: String
  let id: String
  
  init(json: JSON) {
    self.approvalName = json["approvalName"].stringValue
    self.approverStatus = json["approverStatus"].stringValue
    self.createTime = json["createTime"].stringValue
    self.flowType = json["flowType"].stringValue
    self.title = json["title"].stringValue
    self.id = json["id"].stringValue
  }
  
  static func array(from jsonArray: [JSON]) -> [FlowList] {
    return jsonArray.map({
      return FlowList(json: $0)
    })
  }
  
}
